import Vue from 'vue';
import store from '../store';
Vue.directive('perm', function (el, binding) {
    const isAdmin = store.state.user.userInfo.superAdmin;
    if (!isAdmin && !store.state.user.permission[binding.value]) {
        el.style.display = 'none';
    }
})
